﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<meta http-equiv="Pragma" content="no-cache"> 
<meta http-equiv="Cache-Control" content="no-cache"> 
<meta http-equiv="Expires" content="0"> 
<title>饭堂订餐管理中心登录页面</title> 
<link href="style/css/login.css" type="text/css" rel="stylesheet"> 
<script type="text/javascript" src="style/js/Login.js"></script>
</head> 
<body> 
<div class="login">
    <div class="message">饭堂订餐管理中心</div>
     <!-- 由action获得重置选择按钮 -->
     <input type="hidden" id="selectButton" value="${selectButton}">
     <!-- 由action获得重置用户名 -->
      <input type="hidden" name="resetUser" id="resetUser" value="${resetUser}">    
    <form action="" method="post" id="LoginForm">    	
		<input name="action" value="login" type="hidden">
		<input type="text" name="user_num" placeholder="用户名" id="user_num">
		<hr class="hr15">
		<input type="password" name="user_pwd" placeholder="密码" id="user_pwd">
		
		<!-- 验证码 -->
		<input type="text"  name="checkNumber" id="checkNumber"  placeholder="请输入右边验证码" style="width:50%; margin-right:20px;margin-bottom:40px;"  maxlength="4" size="7">	
		
		<img src="${pageContext.request.contextPath}/image.jsp" name="imageNumber" id="imageNumber" style="cursor:hand;margin-top:20px;" title="点击可更换图片" width="140" height="50" onclick="this.src='${pageContext.request.contextPath}/image.jsp?'+Math.random()"/>
		
	    <input type="radio" name="userclass"   checked="checked" value="用户">用户
  		<input type="radio" name="userclass"  value="管理员">管理员

  		<script type="text/javascript">
  	    radioSelect();
  		</script>
  		<input type="submit"  value="登录" style="width:100%" onclick="checkLoginForm()" >
  	
		<hr class="hr20">		
  		<hr class="hr20">		
		<a onClick="alert('请联系管理员')">忘记密码?</a>
		<hr class="hr20">
		<center>
			<font color="red" >${error}</font>
		</center>
	</form>	
</div>
</body>
</html>
